package com.yunzone.cloud.modules.order.service;

import com.yunzone.cloud.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seata-storage-service")
public interface StorageService {

    @PostMapping("/storage/decrease")
    Result decrease(@RequestParam("productId") Long productId,
                    @RequestParam("count") Integer count);

}